﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Module11._1
{
    class Hotel
    {
        private string _customerName;

        private int _billID;

        private string _event;

        private string _location;

        private int _numberOfRooms;

        private double _money;

        string[] Location = new string[] {"Connecticut","Westchester","Rhode Island", "Massachusetts","New Haven County"};
        public void AcceptDetails()
        {
        First:
            Console.Write("Enter the ID of bill: ");
            try
            {
                _billID = Convert.ToInt32(Console.ReadLine());
                if (_billID <= 0)
                {
                    Console.WriteLine("Cannot be negative or zero");
                    goto First;
                }
            }
            catch (FormatException objFormatOne)
            {
                Console.WriteLine("Error:", objFormatOne.Message);
                goto First;
            }
            Console.Write("Customer Name : ");
            _customerName = Console.ReadLine();
            Console.WriteLine("Event type: ");
            _event = Console.ReadLine();
            L1:
            Console.Write("Location: ");
            try
            {
                _location = Console.ReadLine();
            }
            catch (Exception)
            {
                
                throw;
            }
        }
    }
}
